package org.jeecg.modules.oa.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.oa.entity.SignInManagement;
import org.jeecg.modules.oa.mapper.SignInManagementMapper;
import org.jeecg.modules.oa.service.ISignInManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 签到
 * @Author: jeecg-boot
 * @Date:   2020-01-02
 * @Version: V1.0
 */
@Service
public class SignInManagementServiceImpl extends ServiceImpl<SignInManagementMapper, SignInManagement> implements ISignInManagementService {

    @Autowired
    private SignInManagementMapper signInManagementMapper;

    @Override
    public Integer findCheckCount(SignInManagement signIn) {
        return signInManagementMapper.findCheckCount(signIn);
    }

    @Override
    public List<SignInManagement> findByUserId(Page<SignInManagement> page, SignInManagement signIn) {
        return signInManagementMapper.findByUserId(page,signIn);
    }
}
